Refactor native directory handling in Rapier3D#1016
Conversation
It tries to place Rapier natives in `../.sable/` folder and fallbacks to user root directory (`%userprofile%/.sable` on Windows, `~/.sable/` on Mac or Linux)
|
ARM Mac is fine. I’ll check x86 Windows by tomorrow. ARM Windows, x86 Mac and Linux are waiting to be tested. |
|
The better solution would be to use |
|
It works! Thanks qurle. |
@IThundxr, thanks, that was a great idea. I implemented it and actally got |
|
Sorry for insane amount of commits, it’s kinda my first experience in mods and I haven’t touch Java for years |
Reasoning
I figured out that Rapier-related world join crashes on Apple Silicon Macs are caused by error in path resolving.
With this fix, Sable tries to place Rapier natives in
<modpack>/.sable/folder and fallbacks to user root directory:%userprofile%/.sable/on Windows,~/.sable/on Mac and Linux.Result
Now Sable works on my Mac M2 Pro (and all depending mods are working too).
Closes #934, closes #947.
Probable closes #743, closes #864
Testing
I tested the build on Fabric (Sable alone) and NeoForge (Sable alone and also alongside 35 other mods including Create and Create Aeronautics):
Tested
Not tested
NeoForge: sable-neoforge-1.21.1-1.2.2.jar
Fabric: sable-fabric-1.21.1-1.2.2.jar